<?php
class Product extends AppModel{
	public $name='Product';	
	
	public $validate = array(
		'name' => array(array('rule'=>'notEmpty','message'=>'Can not be empty!'),
						array('rule'=>array('uniqueTree','name','product_category_id'),'message'=>'data is already existed'))		
	);
	public $actsAs = array('Translate'=>array('name','description','content'));


	 public $belongsTo = array(        
			'ProductCategory' => array(
			    'className'    => 'ProductCategory'
			)
    	);  
    	
    //Use a different model (and table)
    public $translateTable  = 'product_i18n';
}
?>
